const express = require('express');

const app = express();

app.get('/',(req,res)=>{
    console.log(req.headers); //{ ... 请求头信息}
    console.log(req.get('host')); //localhost
    console.log(req.get('set-cookie')); //undefined
    res.end('end');
});


app.listen(80,()=>{
    console.log('success');
});